package chapter04;

import java.util.Scanner;

public class Day10 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入是否为会员：");
        char vip = input.next().charAt(0);
        System.out.println("请输入消费金额：");
        double consumer = input.nextDouble();
        if (vip == '是'){
            if (consumer>=200){
                System.out.println("会员购打：7.5折");
            }else if (consumer>=100){
                System.out.println("会员购打：8折");
            }else {
                System.out.println("没有满足打折需求");
            }
        }else if (vip == '否'){
            if (consumer>=100){
                System.out.println("普通购打：8折");
            }else {
                System.out.println("没有满足打折需求");
            }
        }else {
            System.out.println("输入错误");
        }
    }
}
